View Product Updating
Home

View Product Updating

View Product Updating

Chapeau

Probleem

Design

Oplossing

@{
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}

@{
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}

@model Webwinkel.Models.Product
@using (Html.BeginForm("Update", "Product"))
{
    <p>
        @Html.LabelFor(model => model.Name)
        @Html.EditorFor(model => model.Name)
        @Html.ValidationMessageFor(model => model.Name)
    </p>
    <p>
        @Html.LabelFor(model => model.Price)
        @Html.EditorFor(model => model.Price)
        @Html.ValidationMessageFor(model => model.Price)
    </p>
    <p>
        @Html.LabelFor(model => model.Image)
        @Html.EditorFor(model => model.Image)
        @Html.ValidationMessageFor(model => model.Image)
    </p>
    <p>
        @Html.LabelFor(model => model.Description)
        @Html.EditorFor(model => model.Description)
        @Html.ValidationMessageFor(model => model.Description)
    </p>
    @Html.HiddenFor(model => model.Id)
    <p>
        <input type="submit" value="Update" />
    </p>
}

JI
2017-01-03 13:24:14